﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class DeliverGoodsManagement_OrderToDeliver : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            AspNetPager1.PageSize = Convert.ToInt32(ConfigurationManager.AppSettings["RowCountPerPage"].ToString());
            BindOrderList();
        }
    }

    private void BindOrderList()
    {
        int pageCount, recordCount;
        dlistOrdersToDeliver.DataSource = new BLL.ORDERDOC().GetList(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, "ORDER_ID", false, " and ORDER_CHECK=1 ", out pageCount, out recordCount);
        dlistOrdersToDeliver.DataBind();
        AspNetPager1.RecordCount = recordCount;
    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        BindOrderList();
    }
}
